package com.pojo;

import org.springframework.beans.factory.FactoryBean;

public class MyBeanFactoryBean implements FactoryBean {

    @Override
    public Object getObject() throws Exception {
        MyBean myBean = new MyBean();

        //处理复杂逻辑

        return myBean;
    }

    @Override
    public Class<?> getObjectType() {
        return null;
    }
}
